package com.millstein.tsinglog.model.dto.category;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 保存分类时使用的封装实体
 */
@Data
public class CategorySaveDTO {
    private Long id;
    @NotNull
    @Length(max = 7)
    private String name;
    @Length(max = 2)
    private String sort;
    @Length(max = 60)
    private String desc;
}
